﻿using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Rosetta.Tests.Mocks;

namespace Rosetta.Tests
{
    [TestClass]
    public class OutputterTests
    {
        #region Public Methods

        [TestMethod]
        public void TestDynamicTextWriter()
        {
            var output = new DynamicTextWriterOutput();

            var writer = new StringWriter();
            output.Put<TextWriter, string>("Write")(writer, "Hello World");

            Assert.AreEqual("Hello World", writer.ToString());
        }

        #endregion
    }
}